package com.acquisition.param.domain;

/**
 * 多监测因子参数
 *
 * @author wuqiwei
 * @date 2020/10/15
 */
public class SingleMonitorFactorParam {

	/**
	 * 多监测因子
	 */
	private String monitorFactorKey;

	/**
	 * 多监测因子的名字，用于传给服务器的，例如：监测因子1，监测因子2，并不是该监测因子代表名字（PH值，二氧化碳）
	 */
	private String factorName;

	/**
	 * 串口号
	 */
	private String portCode;

	/**
	 * 协议类型:0:无协议类型,1:HJ212-2017,2:HJ212-2005,3:河北省协议,4:modbusRtu
	 */
	private Integer protocolType;

	/**
	 * 从设备地址，范围（1~255）。
	 */
	private Integer slaveId;

	/**
	 * 该监测因子1寄存器地址位置
	 */
	private Integer registerAddress;

	/**
	 * 数据类型，1=浮点数;0=整型。
	 */
	private Integer dataType;

	/**
	 * 小数点个数，小数点个数。取值范围（0~6）。
	 */
	private Integer decimalNum;

	public SingleMonitorFactorParam() {
		super();
	}

	public SingleMonitorFactorParam(String monitorFactorKey, String factorName, String portCode, Integer protocolType,
									Integer slaveId, Integer registerAddress, Integer dataType, Integer decimalNum) {
		super();
		this.monitorFactorKey = monitorFactorKey;
		this.factorName = factorName;
		this.portCode = portCode;
		this.protocolType = protocolType;
		this.slaveId = slaveId;
		this.registerAddress = registerAddress;
		this.dataType = dataType;
		this.decimalNum = decimalNum;
	}

	public String getMonitorFactorKey() {
		return monitorFactorKey;
	}

	public void setMonitorFactorKey(String monitorFactorKey) {
		this.monitorFactorKey = monitorFactorKey;
	}

	public String getFactorName() {
		return factorName;
	}

	public void setFactorName(String factorName) {
		this.factorName = factorName;
	}

	public String getPortCode() {
		return portCode;
	}

	public void setPortCode(String portCode) {
		this.portCode = portCode;
	}

	public Integer getProtocolType() {
		return protocolType;
	}

	public void setProtocolType(Integer protocolType) {
		this.protocolType = protocolType;
	}

	public Integer getSlaveId() {
		return slaveId;
	}

	public void setSlaveId(Integer slaveId) {
		this.slaveId = slaveId;
	}

	public Integer getRegisterAddress() {
		return registerAddress;
	}

	public void setRegisterAddress(Integer registerAddress) {
		this.registerAddress = registerAddress;
	}

	public Integer getDataType() {
		return dataType;
	}

	public void setDataType(Integer dataType) {
		this.dataType = dataType;
	}

	public Integer getDecimalNum() {
		return decimalNum;
	}

	public void setDecimalNum(Integer decimalNum) {
		this.decimalNum = decimalNum;
	}

	@Override
	public String toString() {
		return "SingleMonitorFactorParam [monitorFactorKey=" + monitorFactorKey + ", factorName=" + factorName
				+ ", portCode=" + portCode + ", protocolType=" + protocolType + ", slaveId=" + slaveId
				+ ", registerAddress=" + registerAddress + ", dataType=" + dataType + ", decimalNum=" + decimalNum
				+ "]";
	}

}
